package com.hege.service.impl;

import com.hege.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * @Author hege
 * @Date 2020/11/23 21:19
 * @Version 1.0
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public void addData(String key,String value) {

        redisTemplate.opsForValue().set(key,value);
    }
}
